import request from '@/utils/request'

// 查询专家品目列表
export function listExpertcategory(query) {
  return request({
    url: '/system/expertcategory/list',
    method: 'get',
    params: query
  })
}

// 查询专家品目列表[不分页]
export function listsExpertcategory(query) {
  return request({
    url: '/system/expertcategory/lists',
    method: 'get',
    params: query
  })
}

// 查询专家品目详细
export function getExpertcategory(id) {
  return request({
    url: '/system/expertcategory/' + id,
    method: 'get'
  })
}

// 新增专家品目
export function addExpertcategory(data) {
  return request({
    url: '/system/expertcategory',
    method: 'post',
    data: data
  })
}

// 修改专家品目
export function updateExpertcategory(data) {
  return request({
    url: '/system/expertcategory',
    method: 'put',
    data: data
  })
}

// 删除专家品目
export function delExpertcategory(id) {
  return request({
    url: '/system/expertcategory/' + id,
    method: 'delete'
  })
}

// 企业规模状态修改
export function changeExpertcategoryStatus(id, data) {
  return request({
    url: '/system/expertcategory/changeStatus',
    method: 'put',
    data: data
  })
}
